{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\18184\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication\Stata16LogFile_Landgrave_2020.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}26 Aug 2020, 15:31:17

{com}. do "C:\Users\18184\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication\Analysis_LSQ_Landgrave_2020_Main.do"
{txt}
{com}. *Set working drive to desired filepath (e.g. C:\Documents\) 
. *cd "-INSERT DESIRED FILE PATH HERE-"
. cd "~\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication"
{res}C:\Users\18184\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication
{txt}
{com}. 
.                                 *** MAIN MANUSCRIPT ANALYSIS ***
.                                 *DV: Click Rate 
.                                 
. *Load data
. use Landgrave2020_LSQ0.dta, clear
{txt}
{com}. 
. *Table 3 - Information Acquisition, Reply Rate, and Reply Content by Ethnicity 
.         *Column 1 - Resume Click
. ttest Click,by(Race)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}    800{col 22}      .44{col 34} .0175609{col 46} .4966975{col 58}  .405529{col 70}  .474471
       {txt}1 {c |}{res}{col 12}    800{col 22}   .34625{col 34} .0168317{col 46} .4760717{col 58} .3132105{col 70} .3792895
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .393125{col 34} .0122149{col 46} .4885969{col 58} .3691661{col 70} .4170839
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}   .09375{col 34} .0243247{col 58} .0460383{col 70} .1414617
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res}  3.8541
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9999         {txt}Pr(|T| > |t|) = {res}0.0001          {txt}Pr(T > t) = {res}0.0001
{txt}
{com}. 
.                                 
.                                 *DV: Reply Rate & Reply Content
. 
. *Load data 
. use Landgrave2020_LSQ1.dta, clear 
{txt}
{com}.         
. *Table 3 - Information Acquisition, Reply Rate, and Reply Content by Ethnicity 
.         *Column 2 - Reply Rate 
. ttest DV_Reply,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .14625{col 34} .0125009{col 46} .3535777{col 58} .1217116{col 70} .1707884
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .14125{col 34} .0123212{col 46} .3484971{col 58} .1170642{col 70} .1654358
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}   .14375{col 34} .0087736{col 46} .3509457{col 58} .1265409{col 70} .1609591
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}     .005{col 34} .0175523{col 58} -.029428{col 70}  .039428
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  0.2849
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.6121         {txt}Pr(|T| > |t|) = {res}0.7758          {txt}Pr(T > t) = {res}0.3879
{txt}
{com}.         *Column 3 - Helpfulness 
. ttest Help,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .04625{col 34} .0074302{col 46} .2101574{col 58}  .031665{col 70}  .060835
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .05375{col 34} .0079785{col 46} .2256648{col 58} .0380888{col 70} .0694112
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}      .05{col 34} .0054503{col 46} .2180131{col 58} .0393095{col 70} .0606905
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}   -.0075{col 34} .0109025{col 58}-.0288846{col 70} .0138846
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.6879
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2458         {txt}Pr(|T| > |t|) = {res}0.4916          {txt}Pr(T > t) = {res}0.7542
{txt}
{com}. 
.                                 
. *Table 4 - Reply Content by Ethnicity 
.                 ** Content Analysis **
. 
. foreach var of varlist Name GPA Job Volunteer Race Migrant {c -(}
{txt}  2{com}. ttest `var',by(Hispanic)
{txt}  3{com}. {c )-} 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .07875{col 34} .0095289{col 46} .2695167{col 58} .0600455{col 70} .0974545
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .08875{col 34} .0100607{col 46} .2845605{col 58} .0690014{col 70} .1084986
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}   .08375{col 34} .0069275{col 46} .2770991{col 58} .0701621{col 70} .0973379
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}     -.01{col 34}  .013857{col 58}-.0371799{col 70} .0171799
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.7217
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2353         {txt}Pr(|T| > |t|) = {res}0.4706          {txt}Pr(T > t) = {res}0.7647

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .00125{col 34}   .00125{col 46} .0353553{col 58}-.0012037{col 70} .0037037
{txt}Hispanic {c |}{res}{col 12}    800{col 22}        0{col 34}        0{col 46}        0{col 58}        0{col 70}        0
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .000625{col 34}  .000625{col 46}     .025{col 58}-.0006009{col 70} .0018509
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}   .00125{col 34}   .00125{col 58}-.0012018{col 70} .0037018
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  1.0000
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.8413         {txt}Pr(|T| > |t|) = {res}0.3175          {txt}Pr(T > t) = {res}0.1587

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .00375{col 34} .0021624{col 46} .0611606{col 58}-.0004946{col 70} .0079946
{txt}Hispanic {c |}{res}{col 12}    800{col 22}    .0125{col 34} .0039305{col 46} .1111719{col 58} .0047846{col 70} .0202154
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .008125{col 34}  .002245{col 46} .0897999{col 58} .0037216{col 70} .0125284
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}  -.00875{col 34} .0044861{col 58}-.0175492{col 70} .0000492
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -1.9505
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0256         {txt}Pr(|T| > |t|) = {res}0.0513          {txt}Pr(T > t) = {res}0.9744

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}    .0025{col 34} .0017667{col 46} .0499687{col 58}-.0009678{col 70} .0059678
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .00375{col 34} .0021624{col 46} .0611606{col 58}-.0004946{col 70} .0079946
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .003125{col 34} .0013958{col 46} .0558317{col 58} .0003872{col 70} .0058628
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}  -.00125{col 34} .0027923{col 58}-.0067269{col 70} .0042269
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.4477
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.3272         {txt}Pr(|T| > |t|) = {res}0.6545          {txt}Pr(T > t) = {res}0.6728

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}    .0025{col 34} .0017667{col 46} .0499687{col 58}-.0009678{col 70} .0059678
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .00125{col 34}   .00125{col 46} .0353553{col 58}-.0012037{col 70} .0037037
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .001875{col 34} .0010819{col 46} .0432742{col 58} -.000247{col 70}  .003997
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}   .00125{col 34} .0021642{col 58}-.0029949{col 70} .0054949
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  0.5776
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.7182         {txt}Pr(|T| > |t|) = {res}0.5636          {txt}Pr(T > t) = {res}0.2818

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .01875{col 34} .0047986{col 46} .1357257{col 58} .0093306{col 70} .0281694
{txt}Hispanic {c |}{res}{col 12}    800{col 22}    .0175{col 34} .0046389{col 46}  .131207{col 58} .0083942{col 70} .0266058
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .018125{col 34} .0033361{col 46} .1334452{col 58} .0115814{col 70} .0246686
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}   .00125{col 34} .0066743{col 58}-.0118412{col 70} .0143412
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  0.1873
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.5743         {txt}Pr(|T| > |t|) = {res}0.8515          {txt}Pr(T > t) = {res}0.4257
{txt}
{com}. 
. *Figure 2 – Determinants of Reply Rate, LPM
. 
. eststo Neapolitano: reg DV_Reply i.Hispanic i.nativity i.randomJob i.Violence i.Bernie i.randomHoliday Republican LegHispanic LegFemale //All + Leg Characteristics

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,600
{txt}{hline 13}{c +}{hline 34}   F(12, 1587)     = {res}     1.97
{txt}       Model {c |} {res} 2.88750249        12  .240625208   {txt}Prob > F        ={res}    0.0237
{txt}    Residual {c |} {res} 194.049998     1,587  .122274731   {txt}R-squared       ={res}    0.0147
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0072
{txt}       Total {c |} {res}   196.9375     1,599  .123162914   {txt}Root MSE        =   {res} .34968

{txt}{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}            DV_Reply{col 22}{c |}      Coef.{col 34}   Std. Err.{col 46}      t{col 54}   P>|t|{col 62}     [95% Con{col 75}f. Interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}Hispanic {c |}
{space 11}Hispanic  {c |}{col 22}{res}{space 2}-.0059766{col 34}{space 2} .0175556{col 45}{space 1}   -0.34{col 54}{space 3}0.734{col 62}{space 4}-.0404113{col 75}{space 3}  .028458
{txt}{space 20} {c |}
{space 12}nativity {c |}
{space 1}Permanent Resident  {c |}{col 22}{res}{space 2}-.0100176{col 34}{space 2}  .024761{col 45}{space 1}   -0.40{col 54}{space 3}0.686{col 62}{space 4}-.0585853{col 75}{space 3} .0385501
{txt}{space 9}DACAmented  {c |}{col 22}{res}{space 2}-.0355468{col 34}{space 2} .0248036{col 45}{space 1}   -1.43{col 54}{space 3}0.152{col 62}{space 4} -.084198{col 75}{space 3} .0131045
{txt}{space 7}Undocumented  {c |}{col 22}{res}{space 2} .0256826{col 34}{space 2} .0248037{col 45}{space 1}    1.04{col 54}{space 3}0.301{col 62}{space 4}-.0229689{col 75}{space 3} .0743341
{txt}{space 20} {c |}
{space 11}randomJob {c |}
{space 13}Laywer  {c |}{col 22}{res}{space 2}-.0322015{col 34}{space 2} .0219471{col 45}{space 1}   -1.47{col 54}{space 3}0.143{col 62}{space 4}-.0752499{col 75}{space 3} .0108469
{txt}{space 12}Teacher  {c |}{col 22}{res}{space 2}-.0451746{col 34}{space 2} .0214193{col 45}{space 1}   -2.11{col 54}{space 3}0.035{col 62}{space 4}-.0871877{col 75}{space 3}-.0031615
{txt}{space 20} {c |}
{space 12}Violence {c |}
{space 6}High Violence  {c |}{col 22}{res}{space 2} .0200591{col 34}{space 2} .0175397{col 45}{space 1}    1.14{col 54}{space 3}0.253{col 62}{space 4}-.0143444{col 75}{space 3} .0544626
{txt}{space 20} {c |}
{space 14}Bernie {c |}
Bernie Sanders Ca..  {c |}{col 22}{res}{space 2}-.0076814{col 34}{space 2}  .017553{col 45}{space 1}   -0.44{col 54}{space 3}0.662{col 62}{space 4} -.042111{col 75}{space 3} .0267481
{txt}{space 20} {c |}
{space 7}randomHoliday {c |}
{space 10}Christmas  {c |}{col 22}{res}{space 2} -.012058{col 34}{space 2} .0175395{col 45}{space 1}   -0.69{col 54}{space 3}0.492{col 62}{space 4} -.046461{col 75}{space 3} .0223451
{txt}{space 10}Republican {c |}{col 22}{res}{space 2}-.0563381{col 34}{space 2} .0181465{col 45}{space 1}   -3.10{col 54}{space 3}0.002{col 62}{space 4}-.0919317{col 75}{space 3}-.0207444
{txt}{space 9}LegHispanic {c |}{col 22}{res}{space 2} .0163159{col 34}{space 2} .0597672{col 45}{space 1}    0.27{col 54}{space 3}0.785{col 62}{space 4}-.1009151{col 75}{space 3} .1335469
{txt}{space 11}LegFemale {c |}{col 22}{res}{space 2}-.0050455{col 34}{space 2} .0209918{col 45}{space 1}   -0.24{col 54}{space 3}0.810{col 62}{space 4}-.0462202{col 75}{space 3} .0361291
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .2118375{col 34}{space 2}  .032809{col 45}{space 1}    6.46{col 54}{space 3}0.000{col 62}{space 4}  .147484{col 75}{space 3} .2761909
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. coefplot Neapolitano, ///
> mlabel format(%9.2f) msize(tiny) mlabposition(12) mlabgap(*2) ///
> scheme(plotplainblind) xline(0) ///
> ylabel(,nogrid) ///
> xlabel(-.15 "-15pp" 0 "0pp" .15 "15pp",nogrid) ///
> baselevels drop(_cons) ///
> legend(off) ///
> headings(0.Hispanic = "{c -(}bf:Ethnicity{c )-}" ///
> 0.nativity = "{c -(}bf:Citizenship Status{c )-}" ///
> 0.randomJob = "{c -(}bf:Dream Job{c )-}" ///
> 0.Violence = "{c -(}bf:Reason for Migration{c )-}" ///
> 0.Bernie = "{c -(}bf:Volunteer Experience{c )-}" ///
> 0.randomHoliday = "{c -(}bf:Holiday Mentioned{c )-}" ///
> Republican = "{c -(}bf:Legislator Characteristics{c )-}" ///
> )
{res}{txt}
{com}. 
. graph export "Figure2.tif", name("Graph") replace
{txt}(note: file Figure2.tif not found)
(file Figure2.tif written in TIFF format)

{com}. 
. 
.                 
.                                 *** ONLINE APPENDICES ANALYSIS ***
. 
. *Appendix Table 1 - Neccesary Sample Size Estimation
.         *-White v Hispanic              
. ** Butler 2014
. power twoproportions .5243 .5045
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.0198{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.5243
{txt}{ralign 16:p2 = }{res}   0.5045

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}   20,002
{txt}{ralign 16:N per group = }{res}   10,001
{txt}
{com}. ** Gell-Redman 2018
. power twoproportions .418 .347
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.0710{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.4180
{txt}{ralign 16:p2 = }{res}   0.3470

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}    1,470
{txt}{ralign 16:N per group = }{res}      735
{txt}
{com}. ** Mendez & Grose 2018
. power twoproportions .504 .443
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.0610{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.5040
{txt}{ralign 16:p2 = }{res}   0.4430

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}    2,102
{txt}{ralign 16:N per group = }{res}    1,051
{txt}
{com}.         *-Citizen v Undocumented 
. ** Mendez 2013
. power twoproportions .311 .252
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.0590{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.3110
{txt}{ralign 16:p2 = }{res}   0.2520

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}    1,822
{txt}{ralign 16:N per group = }{res}      911
{txt}
{com}. ** Janusz & Lajevardi 2015
. power twoproportions .374 .283
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.0910{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.3740
{txt}{ralign 16:p2 = }{res}   0.2830

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}      834
{txt}{ralign 16:N per group = }{res}      417
{txt}
{com}.         *-Majority vs Minority
. **Bartos et al 2016
. *Czech Republic, Asian
. power twoproportions .633 .475
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.1580{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.6330
{txt}{ralign 16:p2 = }{res}   0.4750

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}      310
{txt}{ralign 16:N per group = }{res}      155
{txt}
{com}. *Czech Republic, Roma 
. power twoproportions .633 .663
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}   0.0300{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.6330
{txt}{ralign 16:p2 = }{res}   0.6630

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}    7,956
{txt}{ralign 16:N per group = }{res}    3,978
{txt}
{com}. *German Labor Market (Turkish)
. power twoproportions .81 .75
{res}
{txt}Performing iteration ...
{res}
{p 0 2 2}{txt}Estimated sample sizes for a two-sample proportions test{p_end}{txt}Pearson's chi-squared test 
{txt}{txt}{bind:Ho: p2 = p1}  {txt}versus  {bind:Ha: p2 != p1}

{txt}Study parameters:

{txt}{ralign 16:alpha = }{res}   0.0500
{txt}{ralign 16:power = }{res}   0.8000
{txt}{ralign 16:delta = }{res}  -0.0600{txt}  (difference)
{txt}{ralign 16:p1 = }{res}   0.8100
{txt}{ralign 16:p2 = }{res}   0.7500

{p}{txt}Estimated sample sizes:{p_end}

{txt}{ralign 16:N = }{res}    1,496
{txt}{ralign 16:N per group = }{res}      748
{txt}
{com}.                 
. *Appendix Table 2 – Two-Sample Equivalence T-Test, DV: Email Reply Rate       
. *NOTE: This requires downloading tostt 
. *See https://www.alexisdinno.com/stata/tost.html        
. tostt DV_Reply,by(Hispanic) eqvlevel(.1)

{txt}Two-sample unpaired t test for mean equivalence with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .14625{col 34} .0125009{col 46} .3535777{col 58} .1217116{col 70} .1707884
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .14125{col 34} .0123212{col 46} .3484971{col 58} .1170642{col 70} .1654358
{txt}{hline 9}{c +}{hline 68}
     Δ-θ {c |}{res}{col 22}     .095{col 34} .0175523{col 58}  .060572{col 70}  .129428
     {txt}θ+Δ {c |}{res}{col 22}     .105{col 34} .0175523{col 58}  .070572{col 70}  .139428
{txt}{hline 9}{c BT}{hline 68}
         θ = mean(DV_Reply|Hispanic = {res}White{txt}) - mean(DV_Reply|Hispanic = {res}Hispanic{txt})
         Δ = {res}0.1000  Δ {txt}expressed in same units as {res}DV_Reply
{txt}        df = {res}1598    {txt} using 800 + 800 - 2

Ho: |θ| >= Δ:

        t1 = {res}5.412   {txt}{col 38}t2 = {res}5.982   

{txt}   Ho1: Δ-θ >= 0       {col 33}Ho2: θ+Δ <= 0
   Ha1: Δ-θ < 0{col 33}Ha2: θ+Δ > 0
   Pr(T > t1) = {res}0.0000{col 32}{txt} Pr(T > t2) = {res}0.0000
{txt}
{com}. tostt DV_Reply,by(Hispanic) eqvlevel(.05)

{txt}Two-sample unpaired t test for mean equivalence with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .14625{col 34} .0125009{col 46} .3535777{col 58} .1217116{col 70} .1707884
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .14125{col 34} .0123212{col 46} .3484971{col 58} .1170642{col 70} .1654358
{txt}{hline 9}{c +}{hline 68}
     Δ-θ {c |}{res}{col 22}     .045{col 34} .0175523{col 58}  .010572{col 70}  .079428
     {txt}θ+Δ {c |}{res}{col 22}     .055{col 34} .0175523{col 58}  .020572{col 70}  .089428
{txt}{hline 9}{c BT}{hline 68}
         θ = mean(DV_Reply|Hispanic = {res}White{txt}) - mean(DV_Reply|Hispanic = {res}Hispanic{txt})
         Δ = {res}0.0500  Δ {txt}expressed in same units as {res}DV_Reply
{txt}        df = {res}1598    {txt} using 800 + 800 - 2

Ho: |θ| >= Δ:

        t1 = {res}2.564   {txt}{col 38}t2 = {res}3.133   

{txt}   Ho1: Δ-θ >= 0       {col 33}Ho2: θ+Δ <= 0
   Ha1: Δ-θ < 0{col 33}Ha2: θ+Δ > 0
   Pr(T > t1) = {res}0.0052{col 32}{txt} Pr(T > t2) = {res}0.0009
{txt}
{com}. 
. *Appendix Table 3 – Balance Table     
. ttest Republican,by(Hispanic) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}     .535{col 34} .0176453{col 46} .4990855{col 58} .5003633{col 70} .5696367
{txt}Hispanic {c |}{res}{col 12}    800{col 22}      .55{col 34} .0176001{col 46} .4978049{col 58} .5154522{col 70} .5845478
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}    .5425{col 34} .0124587{col 46} .4983462{col 58}  .518063{col 70}  .566937
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    -.015{col 34} .0249223{col 58}-.0638838{col 70} .0338838
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.6019
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2737         {txt}Pr(|T| > |t|) = {res}0.5473          {txt}Pr(T > t) = {res}0.7263
{txt}
{com}. ttest LegWhite,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .75875{col 34} .0151359{col 46} .4281093{col 58} .7290391{col 70} .7884609
{txt}Hispanic {c |}{res}{col 12}    800{col 22}      .78{col 34}  .014655{col 46} .4145055{col 58} .7512332{col 70} .8087668
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}  .769375{col 34} .0105341{col 46} .4213645{col 58} .7487129{col 70} .7900371
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}  -.02125{col 34} .0210681{col 58} -.062574{col 70}  .020074
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -1.0086
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.1567         {txt}Pr(|T| > |t|) = {res}0.3133          {txt}Pr(T > t) = {res}0.8433
{txt}
{com}. ttest LegHispanic,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}    .0275{col 34} .0057855{col 46} .1636375{col 58} .0161435{col 70} .0388565
{txt}Hispanic {c |}{res}{col 12}    800{col 22}      .02{col 34} .0049528{col 46} .1400876{col 58} .0102779{col 70} .0297221
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}   .02375{col 34} .0038079{col 46} .1523169{col 58}  .016281{col 70}  .031219
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    .0075{col 34} .0076159{col 58}-.0074382{col 70} .0224382
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  0.9848
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.8376         {txt}Pr(|T| > |t|) = {res}0.3249          {txt}Pr(T > t) = {res}0.1624
{txt}
{com}. ttest LegFemale,by(Hispanic) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .71625{col 34} .0159488{col 46}  .451099{col 58} .6849436{col 70} .7475564
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .75125{col 34} .0152933{col 46}  .432559{col 58} .7212303{col 70} .7812697
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}   .73375{col 34} .0110534{col 46} .4421347{col 58} .7120694{col 70} .7554306
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    -.035{col 34} .0220963{col 58}-.0783408{col 70} .0083408
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -1.5840
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0567         {txt}Pr(|T| > |t|) = {res}0.1134          {txt}Pr(T > t) = {res}0.9433
{txt}
{com}. ttest squire_index,by(Hispanic) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22} .2173338{col 34}  .003703{col 46} .1047365{col 58}  .210065{col 70} .2246025
{txt}Hispanic {c |}{res}{col 12}    800{col 22} .2211138{col 34}  .003758{col 46}  .106292{col 58} .2137371{col 70} .2284904
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22} .2192238{col 34} .0026375{col 46}  .105501{col 58} .2140504{col 70} .2243971
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}  -.00378{col 34} .0052759{col 58}-.0141283{col 70} .0065683
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.7165
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2369         {txt}Pr(|T| > |t|) = {res}0.4738          {txt}Pr(T > t) = {res}0.7631
{txt}
{com}. 
. *Appendix Table 4 – Email Reply Rates by Citizenship Status and State Undocumented Student Policy
. *All Legislators 
. ttest DV_Reply,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    400{col 22}    .1475{col 34} .0177524{col 46} .3550477{col 58} .1126001{col 70} .1823999
{txt}Undocume {c |}{res}{col 12}    400{col 22}    .1725{col 34} .0189144{col 46} .3782876{col 58} .1353157{col 70} .2096843
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    800{col 22}      .16{col 34} .0129696{col 46} .3668354{col 58} .1345415{col 70} .1854585
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    -.025{col 34} .0259403{col 58}-.0759194{col 70} .0259194
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -0.9638
{txt}Ho: diff = 0                                     degrees of freedom = {res}     798

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.1677         {txt}Pr(|T| > |t|) = {res}0.3355          {txt}Pr(T > t) = {res}0.8323
{txt}
{com}. *Undocumented Ban 
. ttest DV_Reply if FriendlyState == 0,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}     29{col 22} .1034483{col 34} .0575533{col 46}  .309934{col 58}-.0144443{col 70} .2213409
{txt}Undocume {c |}{res}{col 12}     24{col 22}      .25{col 34} .0902894{col 46} .4423259{col 58} .0632222{col 70} .4367778
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     53{col 22} .1698113{col 34} .0520679{col 46}   .37906{col 58} .0653294{col 70} .2742932
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.1465517{col 34} .1036101{col 58}-.3545578{col 70} .0614543
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -1.4145
{txt}Ho: diff = 0                                     degrees of freedom = {res}      51

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0817         {txt}Pr(|T| > |t|) = {res}0.1633          {txt}Pr(T > t) = {res}0.9183
{txt}
{com}. *Neutral
. ttest DV_Reply if FriendlyState == 1,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    231{col 22} .0952381{col 34} .0193557{col 46}  .294181{col 58}  .057101{col 70} .1333752
{txt}Undocume {c |}{res}{col 12}    225{col 22}      .16{col 34} .0244949{col 46} .3674235{col 58} .1117301{col 70} .2082699
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    456{col 22}  .127193{col 34} .0156201{col 46}  .333555{col 58} .0964964{col 70} .1578896
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0647619{col 34} .0311293{col 58}-.1259374{col 70}-.0035864
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -2.0804
{txt}Ho: diff = 0                                     degrees of freedom = {res}     454

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0190         {txt}Pr(|T| > |t|) = {res}0.0380          {txt}Pr(T > t) = {res}0.9810
{txt}
{com}. *In-state Tuition
. ttest DV_Reply if FriendlyState == 2,by(CitizenVUndoc) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    140{col 22} .2428571{col 34} .0363711{col 46} .4303492{col 58} .1709449{col 70} .3147694
{txt}Undocume {c |}{res}{col 12}    151{col 22} .1788079{col 34} .0312874{col 46} .3844666{col 58} .1169869{col 70}  .240629
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    291{col 22}  .209622{col 34} .0239021{col 46}   .40774{col 58} .1625783{col 70} .2566657
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} .0640492{col 34} .0477728{col 58}-.0299776{col 70}  .158076
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res}  1.3407
{txt}Ho: diff = 0                                     degrees of freedom = {res}     289

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9095         {txt}Pr(|T| > |t|) = {res}0.1811          {txt}Pr(T > t) = {res}0.0905
{txt}
{com}. 
. *Appendix Table 5 – Email Reply Rates by Citizenship Status and Ethnicity
. *All 
. ttest DV_Reply,by(Hispanic)     

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    800{col 22}   .14625{col 34} .0125009{col 46} .3535777{col 58} .1217116{col 70} .1707884
{txt}Hispanic {c |}{res}{col 12}    800{col 22}   .14125{col 34} .0123212{col 46} .3484971{col 58} .1170642{col 70} .1654358
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}  1,600{col 22}   .14375{col 34} .0087736{col 46} .3509457{col 58} .1265409{col 70} .1609591
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}     .005{col 34} .0175523{col 58} -.029428{col 70}  .039428
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  0.2849
{txt}Ho: diff = 0                                     degrees of freedom = {res}    1598

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.6121         {txt}Pr(|T| > |t|) = {res}0.7758          {txt}Pr(T > t) = {res}0.3879
{txt}
{com}. *Citizen
. ttest DV_Reply if nativity == 0,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    200{col 22}     .175{col 34} .0269352{col 46} .3809206{col 58}  .121885{col 70}  .228115
{txt}Hispanic {c |}{res}{col 12}    200{col 22}      .12{col 34} .0230359{col 46}  .325777{col 58} .0745742{col 70} .1654258
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    400{col 22}    .1475{col 34} .0177524{col 46} .3550477{col 58} .1126001{col 70} .1823999
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}     .055{col 34} .0354423{col 58}-.0146775{col 70} .1246775
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  1.5518
{txt}Ho: diff = 0                                     degrees of freedom = {res}     398

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9392         {txt}Pr(|T| > |t|) = {res}0.1215          {txt}Pr(T > t) = {res}0.0608
{txt}
{com}. *Permanent Resident
. ttest DV_Reply if nativity == 1,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    200{col 22}      .14{col 34} .0245973{col 46} .3478578{col 58} .0914953{col 70} .1885047
{txt}Hispanic {c |}{res}{col 12}    200{col 22}      .14{col 34} .0245973{col 46} .3478578{col 58} .0914953{col 70} .1885047
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    400{col 22}      .14{col 34} .0173711{col 46} .3474216{col 58} .1058497{col 70} .1741503
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}        0{col 34} .0347858{col 58}-.0683868{col 70} .0683868
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res}  0.0000
{txt}Ho: diff = 0                                     degrees of freedom = {res}     398

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.5000         {txt}Pr(|T| > |t|) = {res}1.0000          {txt}Pr(T > t) = {res}0.5000
{txt}
{com}. *DACAmented
. ttest DV_Reply if nativity == 2,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    200{col 22}      .11{col 34} .0221802{col 46} .3136749{col 58} .0662617{col 70} .1537383
{txt}Hispanic {c |}{res}{col 12}    200{col 22}      .12{col 34} .0230359{col 46}  .325777{col 58} .0745742{col 70} .1654258
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    400{col 22}     .115{col 34} .0159711{col 46} .3194215{col 58}  .083602{col 70}  .146398
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}     -.01{col 34} .0319783{col 58}-.0728675{col 70} .0528675
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.3127
{txt}Ho: diff = 0                                     degrees of freedom = {res}     398

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.3773         {txt}Pr(|T| > |t|) = {res}0.7547          {txt}Pr(T > t) = {res}0.6227
{txt}
{com}. *Undocumented
. ttest DV_Reply if nativity == 3,by(Hispanic)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
   White {c |}{res}{col 12}    200{col 22}      .16{col 34}  .025988{col 46}  .367526{col 58} .1087528{col 70} .2112472
{txt}Hispanic {c |}{res}{col 12}    200{col 22}     .185{col 34} .0275257{col 46}  .389272{col 58} .1307205{col 70} .2392795
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    400{col 22}    .1725{col 34} .0189144{col 46} .3782876{col 58} .1353157{col 70} .2096843
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    -.025{col 34} .0378555{col 58}-.0994218{col 70} .0494218
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}White{txt}) - mean({res}Hispanic{txt})                           t = {res} -0.6604
{txt}Ho: diff = 0                                     degrees of freedom = {res}     398

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2547         {txt}Pr(|T| > |t|) = {res}0.5094          {txt}Pr(T > t) = {res}0.7453
{txt}
{com}. 
. *Appendix Table 6 – Email Reply Rates by Citizenship Status and Party ID
. *All Legislators
. ttest DV_Reply,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    400{col 22}    .1475{col 34} .0177524{col 46} .3550477{col 58} .1126001{col 70} .1823999
{txt}Undocume {c |}{res}{col 12}    400{col 22}    .1725{col 34} .0189144{col 46} .3782876{col 58} .1353157{col 70} .2096843
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    800{col 22}      .16{col 34} .0129696{col 46} .3668354{col 58} .1345415{col 70} .1854585
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}    -.025{col 34} .0259403{col 58}-.0759194{col 70} .0259194
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -0.9638
{txt}Ho: diff = 0                                     degrees of freedom = {res}     798

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.1677         {txt}Pr(|T| > |t|) = {res}0.3355          {txt}Pr(T > t) = {res}0.8323
{txt}
{com}. *Democratic Legislators
. ttest DV_Reply if Republican == 0,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    173{col 22} .2080925{col 34} .0309529{col 46} .4071217{col 58} .1469961{col 70} .2691889
{txt}Undocume {c |}{res}{col 12}    177{col 22} .1751412{col 34} .0286502{col 46} .3811661{col 58} .1185991{col 70} .2316834
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    350{col 22} .1914286{col 34} .0210596{col 46} .3939888{col 58} .1500089{col 70} .2328482
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} .0329512{col 34} .0421454{col 58}-.0499405{col 70}  .115843
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res}  0.7818
{txt}Ho: diff = 0                                     degrees of freedom = {res}     348

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.7826         {txt}Pr(|T| > |t|) = {res}0.4348          {txt}Pr(T > t) = {res}0.2174
{txt}
{com}. *Republican Legislators
. ttest DV_Reply if Republican == 1,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    227{col 22} .1013216{col 34} .0200724{col 46} .3024209{col 58} .0617686{col 70} .1408745
{txt}Undocume {c |}{res}{col 12}    223{col 22} .1704036{col 34} .0252346{col 46} .3768328{col 58} .1206736{col 70} .2201336
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    450{col 22} .1355556{col 34} .0161549{col 46}  .342697{col 58}  .103807{col 70} .1673041
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} -.069082{col 34}  .032182{col 58}-.1323285{col 70}-.0058355
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -2.1466
{txt}Ho: diff = 0                                     degrees of freedom = {res}     448

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0162         {txt}Pr(|T| > |t|) = {res}0.0324          {txt}Pr(T > t) = {res}0.9838
{txt}
{com}. *p-value .0324
. 
. *Appendix Table 7 – Email Reply Rates by DACA Status and Party ID
. *All Legislators
. ttest DV_Reply,by(DACAStatus)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
With DAC {c |}{res}{col 12}    400{col 22}     .115{col 34} .0159711{col 46} .3194215{col 58}  .083602{col 70}  .146398
 {txt}Without {c |}{res}{col 12}    400{col 22}    .1725{col 34} .0189144{col 46} .3782876{col 58} .1353157{col 70} .2096843
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    800{col 22}   .14375{col 34} .0124117{col 46} .3510555{col 58} .1193866{col 70} .1681134
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}   -.0575{col 34} .0247554{col 58}-.1060934{col 70}-.0089066
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}With DAC{txt}) - mean({res}Without{txt})                         t = {res} -2.3227
{txt}Ho: diff = 0                                     degrees of freedom = {res}     798

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0102         {txt}Pr(|T| > |t|) = {res}0.0204          {txt}Pr(T > t) = {res}0.9898
{txt}
{com}. *Democrat Legislators
. ttest DV_Reply if Republican == 0,by(DACAStatus)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
With DAC {c |}{res}{col 12}    188{col 22} .1489362{col 34} .0260352{col 46} .3569762{col 58} .0975758{col 70} .2002966
 {txt}Without {c |}{res}{col 12}    177{col 22} .1751412{col 34} .0286502{col 46} .3811661{col 58} .1185991{col 70} .2316834
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    365{col 22} .1616438{col 34} .0192949{col 46} .3686291{col 58} .1237003{col 70} .1995874
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0262051{col 34} .0386361{col 58}-.1021837{col 70} .0497735
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}With DAC{txt}) - mean({res}Without{txt})                         t = {res} -0.6783
{txt}Ho: diff = 0                                     degrees of freedom = {res}     363

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2490         {txt}Pr(|T| > |t|) = {res}0.4980          {txt}Pr(T > t) = {res}0.7510
{txt}
{com}. *Republican Legislators
. ttest DV_Reply if Republican == 1,by(DACAStatus)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
With DAC {c |}{res}{col 12}    212{col 22} .0849057{col 34} .0191893{col 46}  .279401{col 58} .0470783{col 70}  .122733
 {txt}Without {c |}{res}{col 12}    223{col 22} .1704036{col 34} .0252346{col 46} .3768328{col 58} .1206736{col 70} .2201336
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    435{col 22} .1287356{col 34} .0160761{col 46} .3352927{col 58}  .097139{col 70} .1603322
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0854979{col 34} .0319363{col 58}-.1482674{col 70}-.0227285
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}With DAC{txt}) - mean({res}Without{txt})                         t = {res} -2.6771
{txt}Ho: diff = 0                                     degrees of freedom = {res}     433

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0039         {txt}Pr(|T| > |t|) = {res}0.0077          {txt}Pr(T > t) = {res}0.9961
{txt}
{com}. 
. *Appendix Table 8 – Citizen vs. Undocumented (without DACA), LPM
. *Column 1
. reg DV_Reply citizen4 NeutralPolicy FriendlyPolicy ///
> if citizen2 == 0 & citizen3 == 0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       800
{txt}{hline 13}{c +}{hline 34}   F(3, 796)       = {res}     3.30
{txt}       Model {c |} {res} 1.32082811         3  .440276036   {txt}Prob > F        ={res}    0.0199
{txt}    Residual {c |} {res} 106.199172       796  .133416045   {txt}R-squared       ={res}    0.0123
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0086
{txt}       Total {c |} {res}     107.52       799   .13456821   {txt}Root MSE        =   {res} .36526

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      DV_Reply{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}citizen4 {c |}{col 16}{res}{space 2} .0232941{col 28}{space 2} .0258435{col 39}{space 1}    0.90{col 48}{space 3}0.368{col 56}{space 4}-.0274354{col 69}{space 3} .0740236
{txt}{space 1}NeutralPolicy {c |}{col 16}{res}{space 2}-.0435639{col 28}{space 2} .0530185{col 39}{space 1}   -0.82{col 48}{space 3}0.412{col 56}{space 4}-.1476365{col 69}{space 3} .0605088
{txt}FriendlyPolicy {c |}{col 16}{res}{space 2} .0382716{col 28}{space 2} .0545772{col 39}{space 1}    0.70{col 48}{space 3}0.483{col 56}{space 4}-.0688607{col 69}{space 3} .1454039
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} .1592631{col 28}{space 2} .0515193{col 39}{space 1}    3.09{col 48}{space 3}0.002{col 56}{space 4} .0581333{col 69}{space 3} .2603928
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using AttentionDiscrimination_Appendix.xls, replace ///
> title("Reply Rate; Citizen vs. Undocumented (without DACA)") label 
{txt}{browse `"AttentionDiscrimination_Appendix.xls"'}
{browse `"C:\Users\18184\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication"' :dir}{com} : {txt}{stata `"seeout using "AttentionDiscrimination_Appendix.txt", label"':seeout}

{com}. *Column 2
. reg DV_Reply citizen4 NeutralPolicy FriendlyPolicy ///
> TrumpShare HispanicShare Professional if citizen2 == 0 & citizen3 == 0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       800
{txt}{hline 13}{c +}{hline 34}   F(6, 793)       = {res}     4.46
{txt}       Model {c |} {res} 3.51128837         6  .585214729   {txt}Prob > F        ={res}    0.0002
{txt}    Residual {c |} {res} 104.008712       793  .131158527   {txt}R-squared       ={res}    0.0327
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0253
{txt}       Total {c |} {res}     107.52       799   .13456821   {txt}Root MSE        =   {res} .36216

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}      DV_Reply{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      t{col 48}   P>|t|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}citizen4 {c |}{col 16}{res}{space 2}  .017664{col 28}{space 2} .0257188{col 39}{space 1}    0.69{col 48}{space 3}0.492{col 56}{space 4}-.0328209{col 69}{space 3}  .068149
{txt}{space 1}NeutralPolicy {c |}{col 16}{res}{space 2}-.0806744{col 28}{space 2} .0549102{col 39}{space 1}   -1.47{col 48}{space 3}0.142{col 56}{space 4}-.1884608{col 69}{space 3} .0271121
{txt}FriendlyPolicy {c |}{col 16}{res}{space 2}-.0067929{col 28}{space 2} .0558434{col 39}{space 1}   -0.12{col 48}{space 3}0.903{col 56}{space 4}-.1164112{col 69}{space 3} .1028255
{txt}{space 4}TrumpShare {c |}{col 16}{res}{space 2}-.4867883{col 28}{space 2} .1409767{col 39}{space 1}   -3.45{col 48}{space 3}0.001{col 56}{space 4}-.7635198{col 69}{space 3}-.2100568
{txt}{space 1}HispanicShare {c |}{col 16}{res}{space 2}-.3491819{col 28}{space 2} .1983233{col 39}{space 1}   -1.76{col 48}{space 3}0.079{col 56}{space 4}-.7384826{col 69}{space 3} .0401188
{txt}{space 2}Professional {c |}{col 16}{res}{space 2} .0326846{col 28}{space 2} .0287652{col 39}{space 1}    1.14{col 48}{space 3}0.256{col 56}{space 4}-.0237803{col 69}{space 3} .0891495
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} .4574374{col 28}{space 2} .0993199{col 39}{space 1}    4.61{col 48}{space 3}0.000{col 56}{space 4} .2624764{col 69}{space 3} .6523984
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using AttentionDiscrimination_Appendix.xls, append label 
{txt}{browse `"AttentionDiscrimination_Appendix.xls"'}
{browse `"C:\Users\18184\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication"' :dir}{com} : {txt}{stata `"seeout using "AttentionDiscrimination_Appendix.txt", label"':seeout}

{com}. *Column 3
. reg DV_Reply citizen4 NeutralPolicy FriendlyPolicy ///
> UndocNeutralPolicy UndocFriendlyPolicy ///
> TrumpShare HispanicShare Professional if citizen2 == 0 & citizen3 == 0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       800
{txt}{hline 13}{c +}{hline 34}   F(8, 791)       = {res}     4.19
{txt}       Model {c |} {res} 4.37526492         8  .546908115   {txt}Prob > F        ={res}    0.0001
{txt}    Residual {c |} {res} 103.144735       791  .130397895   {txt}R-squared       ={res}    0.0407
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0310
{txt}       Total {c |} {res}     107.52       799   .13456821   {txt}Root MSE        =   {res} .36111

{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}           DV_Reply{col 21}{c |}      Coef.{col 33}   Std. Err.{col 45}      t{col 53}   P>|t|{col 61}     [95% Con{col 74}f. Interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}citizen4 {c |}{col 21}{res}{space 2} .1400423{col 33}{space 2} .1000185{col 44}{space 1}    1.40{col 53}{space 3}0.162{col 61}{space 4}-.0562908{col 74}{space 3} .3363754
{txt}{space 6}NeutralPolicy {c |}{col 21}{res}{space 2}-.0436671{col 33}{space 2} .0735361{col 44}{space 1}   -0.59{col 53}{space 3}0.553{col 61}{space 4}-.1880161{col 74}{space 3} .1006819
{txt}{space 5}FriendlyPolicy {c |}{col 21}{res}{space 2} .0929867{col 33}{space 2} .0748383{col 44}{space 1}    1.24{col 53}{space 3}0.214{col 61}{space 4}-.0539184{col 74}{space 3} .2398919
{txt}{space 1}UndocNeutralPolicy {c |}{col 21}{res}{space 2} -.083728{col 33}{space 2} .1056209{col 44}{space 1}   -0.79{col 53}{space 3}0.428{col 61}{space 4}-.2910584{col 74}{space 3} .1236024
{txt}UndocFriendlyPolicy {c |}{col 21}{res}{space 2}-.2052437{col 33}{space 2} .1084294{col 44}{space 1}   -1.89{col 53}{space 3}0.059{col 61}{space 4}-.4180871{col 74}{space 3} .0075997
{txt}{space 9}TrumpShare {c |}{col 21}{res}{space 2} -.482642{col 33}{space 2} .1405771{col 44}{space 1}   -3.43{col 53}{space 3}0.001{col 61}{space 4}-.7585903{col 74}{space 3}-.2066936
{txt}{space 6}HispanicShare {c |}{col 21}{res}{space 2}-.3453828{col 33}{space 2} .1981671{col 44}{space 1}   -1.74{col 53}{space 3}0.082{col 61}{space 4}-.7343784{col 74}{space 3} .0436128
{txt}{space 7}Professional {c |}{col 21}{res}{space 2} .0297615{col 33}{space 2} .0287443{col 44}{space 1}    1.04{col 53}{space 3}0.301{col 61}{space 4}-.0266627{col 74}{space 3} .0861857
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .3999911{col 33}{space 2} .1090951{col 44}{space 1}    3.67{col 53}{space 3}0.000{col 61}{space 4}  .185841{col 74}{space 3} .6141412
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. outreg2 using AttentionDiscrimination_Appendix.xls, append label 
{txt}{browse `"AttentionDiscrimination_Appendix.xls"'}
{browse `"C:\Users\18184\Dropbox\AuditingAuditStudies\Research Article Drafts\Replication_AttentionDiscrimination\Replication"' :dir}{com} : {txt}{stata `"seeout using "AttentionDiscrimination_Appendix.txt", label"':seeout}

{com}. 
. *Appendix Table 9 – Sentiment Analysis by Citizenship Status and State Undocumented Student Policy
. *All Legislators
. ttest Sentiment,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    400{col 22}    .2325{col 34} .0288542{col 46} .5770843{col 58} .1757747{col 70} .2892253
{txt}Undocume {c |}{res}{col 12}    400{col 22}    .2625{col 34} .0304455{col 46} .6089094{col 58} .2026464{col 70} .3223536
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    800{col 22}    .2475{col 34} .0209667{col 46}  .593029{col 58} .2063436{col 70} .2886564
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}     -.03{col 34} .0419463{col 58}-.1123381{col 70} .0523381
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -0.7152
{txt}Ho: diff = 0                                     degrees of freedom = {res}     798

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.2373         {txt}Pr(|T| > |t|) = {res}0.4747          {txt}Pr(T > t) = {res}0.7627
{txt}
{com}. *Undocumented Ban
. ttest Sentiment if FriendlyState == 0,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}     29{col 22} .1896552{col 34} .1064826{col 46} .5734263{col 58}-.0284645{col 70} .4077749
{txt}Undocume {c |}{res}{col 12}     24{col 22}    .4375{col 34} .1629453{col 46} .7982658{col 58} .1004219{col 70} .7745781
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}     53{col 22} .3018868{col 34} .0946114{col 46} .6887811{col 58} .1120352{col 70} .4917384
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.2478448{col 34} .1887609{col 58}-.6267982{col 70} .1311085
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -1.3130
{txt}Ho: diff = 0                                     degrees of freedom = {res}      51

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0975         {txt}Pr(|T| > |t|) = {res}0.1951          {txt}Pr(T > t) = {res}0.9025
{txt}
{com}. *Neutral
. ttest Sentiment if FriendlyState == 1,by(CitizenVUndoc)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    231{col 22} .1450216{col 34} .0303353{col 46} .4610563{col 58} .0852511{col 70} .2047922
{txt}Undocume {c |}{res}{col 12}    225{col 22} .2244444{col 34} .0371119{col 46} .5566784{col 58} .1513113{col 70} .2975776
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    456{col 22} .1842105{col 34} .0239515{col 46} .5114649{col 58} .1371412{col 70} .2312799
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-.0794228{col 34} .0478149{col 58}-.1733887{col 70} .0145431
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res} -1.6610
{txt}Ho: diff = 0                                     degrees of freedom = {res}     454

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0487         {txt}Pr(|T| > |t|) = {res}0.0974          {txt}Pr(T > t) = {res}0.9513
{txt}
{com}. *In-state Tuition
. ttest Sentiment if FriendlyState == 2,by(CitizenVUndoc) 

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
Variable{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
 Citizen {c |}{res}{col 12}    140{col 22} .3857143{col 34} .0598351{col 46} .7079783{col 58} .2674097{col 70} .5040189
{txt}Undocume {c |}{res}{col 12}    151{col 22} .2913907{col 34} .0526049{col 46} .6464199{col 58} .1874484{col 70}  .395333
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    291{col 22} .3367698{col 34} .0396986{col 46} .6772066{col 58} .2586359{col 70} .4149036
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} .0943236{col 34} .0793976{col 58}-.0619473{col 70} .2505944
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}Citizen{txt}) - mean({res}Undocume{txt})                         t = {res}  1.1880
{txt}Ho: diff = 0                                     degrees of freedom = {res}     289

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.8821         {txt}Pr(|T| > |t|) = {res}0.2358          {txt}Pr(T > t) = {res}0.1179
{txt}
{com}. 
{txt}end of do-file

{com}. exit, clear
